import request from '@/utils/request'

// 查询能耗统计结果列表
export function listDispatchEnergyConsumptionStats(query) {
  return request({
    url: '/system/dispatchEnergyConsumptionStats/list',
    method: 'get',
    params: query
  })
}

// 查询能耗统计结果详细
export function getDispatchEnergyConsumptionStats(energyConsumptionStatsId) {
  return request({
    url: '/system/dispatchEnergyConsumptionStats/' + energyConsumptionStatsId,
    method: 'get'
  })
}

// 新增能耗统计结果
export function addDispatchEnergyConsumptionStats(data) {
  return request({
    url: '/system/dispatchEnergyConsumptionStats',
    method: 'post',
    data: data
  })
}

// 修改能耗统计结果
export function updateDispatchEnergyConsumptionStats(data) {
  return request({
    url: '/system/dispatchEnergyConsumptionStats',
    method: 'put',
    data: data
  })
}

// 删除能耗统计结果
export function delDispatchEnergyConsumptionStats(energyConsumptionStatsId) {
  return request({
    url: '/system/dispatchEnergyConsumptionStats/' + energyConsumptionStatsId,
    method: 'delete'
  })
}
